var path = require('path');
module.exports = function override(config, env) {
  // do stuff with the webpack config...
  config = {
    ...config,
    entry: {
      main:[process.env.NODE_ENV == 'development' && require.resolve('react-dev-utils/webpackHotDevClient'), path.resolve(__dirname, 'src', 'index.js')].filter(Boolean),
      vendor: [
        'core-js/es6/map',
        'chalk',
        'react',
        'react-dom',
        'react-router-dom',
      ]
    },
    resolve: {
      extensions: ['.js', '.jsx', '.less', '.scss', '.css'],
      modules: [
        path.resolve(__dirname, 'node_modules'),
      ],
      alias: {
        style: 'static/style',
      }
    },
  }
  return config;
};